package com.zzl.springboot_mybatis_demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Application.class 加上注解@EnableSwagger2 表示开启Swagger
 * description：springboot启动类
 * user 朱正磊
 * time 2019-09-24 22:55
 */
@Slf4j
@EnableSwagger2
@ServletComponentScan
@SpringBootApplication
@EnableTransactionManagement
@ComponentScan({"com.zzl.springboot_mybatis_demo", "com.gitee.yongzhuzl.commonutil"})
public class SpringbootMybatisDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootMybatisDemoApplication.class, args);
		log.info("springboot启动成功！");
	}

}
